package com.example.vs;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;
import android.graphics.RectF;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Gallery;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.Gallery.LayoutParams;

public class Progress extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// setContentView(R.layout.progress);

        setContentView(new View(this));
        Paint mPaint = new Paint();
        mPaint.setDither(true);
        mPaint.setColor(0xFFFFFF00);
        mPaint.setStyle(Paint.Style.STROKE);
        mPaint.setStrokeJoin(Paint.Join.ROUND);
        mPaint.setStrokeCap(Paint.Cap.ROUND);
        mPaint.setStrokeWidth(3);
        
        Canvas canvas = new Canvas();
        Path path = new Path();
        canvas.drawOval(new RectF(1, 1, 50, 80), mPaint);
        
		
//		// Create a LinearLayout in which to add the ImageView
//		LinearLayout mLinearLayout = new LinearLayout(this);
//
//		// Instantiate an ImageView and define its properties
//		ImageView i = new ImageView(this);
//		i.setImageResource(R.drawable.area1);
//		i.setAdjustViewBounds(true); // set the ImageView bounds to match the
//										// Drawable's dimensions
//		i.setLayoutParams(new Gallery.LayoutParams(LayoutParams.WRAP_CONTENT,
//				LayoutParams.WRAP_CONTENT));
//		Canvas canvas = new Canvas();
//		canvas.
//		// Add the ImageView to the layout and set the layout as the content
//		// view
//		mLinearLayout.addView(i);
//		setContentView(mLinearLayout);

//		Button startEditor = (Button) findViewById(R.id.editBtn);
//		startEditor.setOnClickListener(new View.OnClickListener() {
//			public void onClick(View view) {
//				Intent myIntent = new Intent(view.getContext(), Editor.class);
//				startActivity(myIntent);
//			}
//		});

	}
}